package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * HrEmp generated by hbm2java
 */
@Entity
@Table(name="hr_emp"
    ,catalog="lmis"
)
public class HrEmp  implements java.io.Serializable {


     private Short empNo;
     private HrEmpPosition hrEmpPosition;
     private String empCode;
     private Short nameTitleNo;
     private String empFirstName;
     private String empLastName;
     private Short empOrgNo;
     private Set<SysUserLogin> sysUserLogins = new HashSet<SysUserLogin>(0);
     private Set<SysBranch> sysBranches = new HashSet<SysBranch>(0);
     private Set<SaleLoanOffer> saleLoanOffers = new HashSet<SaleLoanOffer>(0);
     private Set<SaleLoanContract> saleLoanContracts = new HashSet<SaleLoanContract>(0);
     private Set<SaleLoanContractLog> saleLoanContractLogs = new HashSet<SaleLoanContractLog>(0);

    public HrEmp() {
    }

    public HrEmp(HrEmpPosition hrEmpPosition, String empCode, Short nameTitleNo, String empFirstName, String empLastName, Short empOrgNo, Set<SysUserLogin> sysUserLogins, Set<SysBranch> sysBranches, Set<SaleLoanOffer> saleLoanOffers, Set<SaleLoanContract> saleLoanContracts, Set<SaleLoanContractLog> saleLoanContractLogs) {
       this.hrEmpPosition = hrEmpPosition;
       this.empCode = empCode;
       this.nameTitleNo = nameTitleNo;
       this.empFirstName = empFirstName;
       this.empLastName = empLastName;
       this.empOrgNo = empOrgNo;
       this.sysUserLogins = sysUserLogins;
       this.sysBranches = sysBranches;
       this.saleLoanOffers = saleLoanOffers;
       this.saleLoanContracts = saleLoanContracts;
       this.saleLoanContractLogs = saleLoanContractLogs;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="EMP_NO", unique=true, nullable=false)
    public Short getEmpNo() {
        return this.empNo;
    }
    
    public void setEmpNo(Short empNo) {
        this.empNo = empNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="EMP_POS_NO")
    public HrEmpPosition getHrEmpPosition() {
        return this.hrEmpPosition;
    }
    
    public void setHrEmpPosition(HrEmpPosition hrEmpPosition) {
        this.hrEmpPosition = hrEmpPosition;
    }

    
    @Column(name="EMP_CODE", length=10)
    public String getEmpCode() {
        return this.empCode;
    }
    
    public void setEmpCode(String empCode) {
        this.empCode = empCode;
    }

    
    @Column(name="NAME_TITLE_NO")
    public Short getNameTitleNo() {
        return this.nameTitleNo;
    }
    
    public void setNameTitleNo(Short nameTitleNo) {
        this.nameTitleNo = nameTitleNo;
    }

    
    @Column(name="EMP_FIRST_NAME", length=50)
    public String getEmpFirstName() {
        return this.empFirstName;
    }
    
    public void setEmpFirstName(String empFirstName) {
        this.empFirstName = empFirstName;
    }

    
    @Column(name="EMP_LAST_NAME", length=50)
    public String getEmpLastName() {
        return this.empLastName;
    }
    
    public void setEmpLastName(String empLastName) {
        this.empLastName = empLastName;
    }

    
    @Column(name="EMP_ORG_NO")
    public Short getEmpOrgNo() {
        return this.empOrgNo;
    }
    
    public void setEmpOrgNo(Short empOrgNo) {
        this.empOrgNo = empOrgNo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="hrEmp")
    public Set<SysUserLogin> getSysUserLogins() {
        return this.sysUserLogins;
    }
    
    public void setSysUserLogins(Set<SysUserLogin> sysUserLogins) {
        this.sysUserLogins = sysUserLogins;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="hrEmp")
    public Set<SysBranch> getSysBranches() {
        return this.sysBranches;
    }
    
    public void setSysBranches(Set<SysBranch> sysBranches) {
        this.sysBranches = sysBranches;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="hrEmp")
    public Set<SaleLoanOffer> getSaleLoanOffers() {
        return this.saleLoanOffers;
    }
    
    public void setSaleLoanOffers(Set<SaleLoanOffer> saleLoanOffers) {
        this.saleLoanOffers = saleLoanOffers;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="hrEmp")
    public Set<SaleLoanContract> getSaleLoanContracts() {
        return this.saleLoanContracts;
    }
    
    public void setSaleLoanContracts(Set<SaleLoanContract> saleLoanContracts) {
        this.saleLoanContracts = saleLoanContracts;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="hrEmp")
    public Set<SaleLoanContractLog> getSaleLoanContractLogs() {
        return this.saleLoanContractLogs;
    }
    
    public void setSaleLoanContractLogs(Set<SaleLoanContractLog> saleLoanContractLogs) {
        this.saleLoanContractLogs = saleLoanContractLogs;
    }




}


